package network.Demo01;

import java.net.InetAddress;
import java.net.UnknownHostException;

/**
 * @Author Miku
 * @Create 2021/5/5 16:52
 * 测试IP
 */
public class TestInetAddress {
    public static void main(String[] args) {
        try {
            InetAddress address = InetAddress.getByName("www.bilibili.com");
            System.out.println(address);
        } catch (UnknownHostException e) {
            e.printStackTrace();
        }
    }
}
